﻿<%@ Page Language="c#" CodeBehind="Generate_TaskList.aspx.cs" MasterPageFile="~/App_MasterPages/layout.Master"
    AutoEventWireup="false" Inherits="ud_gSDMS.task_list.Generate_TaskList" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" />
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">
<portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
    <mp:CornerRounderTop id="ctop1" runat="server" />
    <asp:Panel ID="pnlStoreManager" runat="server" CssClass="art-Post-inner panelwrapper gSDMS">
            <portal:ModuleTitleControlCustom ID="moduleTitle" runat="server" RenderArtisteer="true" UseLowerCaseArtisteerClasses="true"/>
        <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
        <div class="modulecontent">
            <fieldset>
                <br /><br />

                <div class="div_Edit">
                    <table cellpadding='3' cellspacing='0' border='0' width="auto" class="tb_edit" >
                         <tr >
                            <td colspan="2">
                                <table cellpadding=0 cellspacing=0 border=0>
                                    <tr class="div_title_parent">
                                        <td colspan="2">GENERATE TASKLIST</td>
                                    </tr>
                                    <tr>
                                    <td class="title" style="width: 156px">Start date:</td>
                                    <td class="input" style="width: 374px"> 
                                        <telerik:RadDatePicker ID="datStart_Date" runat="server" 
                                        DateInput-DateFormat="dd/MM/yyyy" DateInput-CssClass="txtInput" DateInput-MaxLength="10" Width="120px" Height="18px"
                                        DatePopupButton-Width="23px" DatePopupButton-Height="23px">
                                        <Calendar >
                                        <SpecialDays>
                                            <telerik:RadCalendarDay Repeatable="Today" ItemStyle-CssClass="rcToday" />
                                        </SpecialDays>
                                    </Calendar>
                                </telerik:RadDatePicker>
                                <span class='span_note'>(dd/MM/yyyy)</span>
                            </td>

                            <td class="title title_n1" style="width: 121px">&nbsp;&nbsp;&nbsp; End date:</td>
                            <td class="input"> 
                                <telerik:RadDatePicker ID="datEnd_Date" runat="server" 
                                        DateInput-DateFormat="dd/MM/yyyy" DateInput-CssClass="txtInput" DateInput-MaxLength="10" Width="120px" Height="18px"
                                        DatePopupButton-Width="23px" DatePopupButton-Height="23px">
                                     <Calendar>
                                        <SpecialDays>
                                            <telerik:RadCalendarDay Repeatable="Today" ItemStyle-CssClass="rcToday" />
                                        </SpecialDays>
                                    </Calendar>
                                </telerik:RadDatePicker>
                                <span class='span_note'>(dd/MM/yyyy)</span>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" style="margin-left: 40px">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:CheckBox ID="radName" runat="server" Text="TinLT" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:CheckBox ID="CheckBox1" runat="server" Text="ChauTA" />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:CheckBox ID="CheckBox2" runat="server" Text="KhoaVV" />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:CheckBox ID="CheckBox3" runat="server" Text="ThienTT" />
                                &nbsp; ....<br /> 
                            </td>
               
                        </tr>
                        <tr>
                            <td colspan="4" style="margin-bottom:inherit>                            
                               <asp:ImageButton ID='btnSearch' runat="server" ImageAlign="Middle" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/search.png" Width="82px" Height="23px" />
                               
                            </td>
                        </tr>
                            </table>
                            </td>
                        </tr>
                        
                       <tr>
                            <td class="title"></td>
                            <td class="input gSDMS_Grid" style="width: 973px">
                                <asp:UpdatePanel ID="updPanner" runat="server" EnableViewState="true">
                                    <ContentTemplate>
                                        
                                           <asp:GridView ID="grdHostPackage" runat="server" CellPadding="4" 
                                               ForeColor="#333333" GridLines="None" 
                                                AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
                                               PagerSettings-Position="Bottom" PagerStyle-HorizontalAlign="Right"
                                                CssClass="css_grid" ShowFooter="True" ShowFooterWhenEmpty="True" 
                                               DataKeyNames="Hosting_Contract_Hosting_ID" EnableModelValidation="True" Width="1150px"
                                                >
                                                <AlternatingRowStyle CssClass='AlternatingRowStyle' /> <EditRowStyle CssClass='EditRowStyle' />
                                                <FooterStyle CssClass='FooterStyle' /> <HeaderStyle CssClass='HeaderStyle' />
                                                <PagerStyle CssClass='PagerStyle' HorizontalAlign="Right" /> <RowStyle CssClass='RowStyle' />
                                                <SelectedRowStyle CssClass='SelectedRowStyle' />
                                    
                                                <Columns >
                                                    <asp:TemplateField HeaderText="#" ItemStyle-CssClass="stt">
                                                        <ItemTemplate>
                                                            <asp:LinkButton CommandName="insert-empty-row" CommandArgument='<%# grdHostPackage.PageIndex * grdHostPackage.PageSize + grdHostPackage.Rows.Count + 1%>' ID="lbtInser" runat="server" ValidationGroup="13" ToolTip="Click to insert a empty row" Font-Underline="true">
                                                                <%# grdHostPackage.PageIndex * grdHostPackage.PageSize + grdHostPackage.Rows.Count + 1%>
                                                            </asp:LinkButton>
                                                        </ItemTemplate>
                                                        <ItemStyle CssClass="stt" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Date (*)" ItemStyle-CssClass="text" 
                                                        HeaderStyle-Width="220px">
                                                        <ItemTemplate><%#Eval("HostPackageName")%></ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:DropDownList ID="cboCAT_Hosting_ID" CssClass="txtInput" Width="200px" Height="21px" runat="server" ValidationGroup="11" ></asp:DropDownList>
                                                            <asp:RequiredFieldValidator ControlToValidate="cboCAT_Hosting_ID" Text='<%#Eval("HostPackageName")%>' SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ID="ReqcboCAT_Hosting_ID1" runat="server" ValidationGroup="11" ></asp:RequiredFieldValidator>
                                                        </EditItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:DropDownList ID="cboCAT_Hosting_ID" CssClass="txtInput" Width="200px" Height="21px" runat="server" ValidationGroup="12" ></asp:DropDownList>
                                                            <asp:RequiredFieldValidator ControlToValidate="cboCAT_Hosting_ID" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ID="ReqcboCAT_Hosting_ID2" runat="server" ValidationGroup="12" ></asp:RequiredFieldValidator>
                                                        </FooterTemplate>
                                                        <HeaderStyle Width="220px" />
                                                        <ItemStyle CssClass="text" />
                                                    </asp:TemplateField>
                                        
                                                    <asp:TemplateField HeaderText="Account(*)" ItemStyle-CssClass="text">
                                                        <ItemTemplate><%#Eval("Size")%></ItemTemplate>
                                                        <ItemStyle CssClass="text" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Project Code (*)" ItemStyle-CssClass="text" 
                                                        HeaderStyle-Width="95px">
                                                        <ItemTemplate><%#Eval("Start_Date")%></ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtStart_Date" runat="server" Text='<%#Eval("Start_Date")%>' CssClass="txtInput txtDate" MaxLength="10" ValidationGroup="11" onkeyup="CompleteValueDatePad(this, event)"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtStart_Date" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ValidationGroup="11"  ID="ReqtxtStart_Date1" runat="server" ></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ControlToValidate="txtStart_Date" Display="Dynamic" SetFocusOnError="true" ValidationGroup="11"  ID="RegtxtStart_Date2" runat="server" 
                                                                ErrorMessage="*" ValidationExpression="^((0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](?:19|20)\d\d)$">(dd/mm/yyyy)</asp:RegularExpressionValidator>
                                                        </EditItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:TextBox ID="txtStart_Date" runat="server" Text='<%#Eval("Start_Date")%>' CssClass="txtInput txtDate" MaxLength="10" ValidationGroup="12" onkeyup="CompleteValueDatePad(this, event)"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtStart_Date" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ValidationGroup="12" ID="ReqtxtStart_Date2" runat="server" ></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ControlToValidate="txtStart_Date" Display="Dynamic" SetFocusOnError="true" ValidationGroup="12" ID="RegtxtStart_Date2" runat="server" 
                                                                ErrorMessage="*" ValidationExpression="^((0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](?:19|20)\d\d)$">(dd/mm/yyyy)</asp:RegularExpressionValidator>
                                                        </FooterTemplate>
                                                        <HeaderStyle Width="95px" />
                                                        <ItemStyle CssClass="text" />
                                                    </asp:TemplateField>

                                                    <asp:TemplateField HeaderText="Work (*)" ItemStyle-CssClass="text" 
                                                        HeaderStyle-Width="120px">
                                                        <ItemTemplate> <div class='<%# ud_gSDMS.Code_Service.Library.GiveAlarm(Eval("End_Date"),"vi-VN") %>' > <%#Eval("End_Date")%></div></ItemTemplate>
                                                        <EditItemTemplate>
                                                            <asp:TextBox ID="txtEnd_Date" runat="server" Text='<%#Eval("End_Date")%>' CssClass="txtInput txtDate" MaxLength="10" ValidationGroup="11" onkeyup="CompleteValueDatePad(this, event)"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtEnd_Date" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ID="ReqtxtEnd_Date1" runat="server" ValidationGroup="11"></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ControlToValidate="txtEnd_Date" Display="Dynamic" SetFocusOnError="true" ID="RegtxtEnd_Date2" runat="server"  ValidationGroup="11"
                                                                ErrorMessage="*" ValidationExpression="^((0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](?:19|20)\d\d)$">(dd/mm/yyyy)</asp:RegularExpressionValidator>
                                                        </EditItemTemplate>
                                                        <FooterTemplate>
                                                            <asp:TextBox ID="txtEnd_Date" runat="server" Text='<%#Eval("End_Date")%>' CssClass="txtInput txtDate" MaxLength="10" ValidationGroup="12" onkeyup="CompleteValueDatePad(this, event)"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ControlToValidate="txtEnd_Date" SetFocusOnError="true" ErrorMessage="*" Display="Dynamic" ValidationGroup="12" ID="ReqtxtEnd_Date2" runat="server" ></asp:RequiredFieldValidator>
                                                            <asp:RegularExpressionValidator ControlToValidate="txtEnd_Date" Display="Dynamic" SetFocusOnError="true" ValidationGroup="12" ID="RegtxtEnd_Date2" runat="server" 
                                                                ErrorMessage="*" ValidationExpression="^((0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](?:19|20)\d\d)$">(dd/mm/yyyy)</asp:RegularExpressionValidator>

                                                            <asp:ImageButton ID="btnAdd" style=" vertical-align:text-bottom" CommandName="insert" CommandArgument='<%# grdHostPackage.PageIndex * grdHostPackage.PageSize + grdHostPackage.Rows.Count + 1%>' ValidationGroup="12" CssClass="delete" runat="server" ToolTip="Add" ImageUrl="~/Data/Sites/1/skins/StandardSkin/images/add.png"/>
                                                        </FooterTemplate>
                                                        <HeaderStyle Width="120px" />
                                                        <ItemStyle CssClass="text" />
                                                    </asp:TemplateField>                                        
                                        
                                                    <asp:TemplateField HeaderText="Work description">
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="From"></asp:TemplateField>
                                                    <asp:TemplateField HeaderText="To"></asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Hour"></asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                        </tr>

                        <%-------button Save........-------------------------------------------------------------%>
                        <tr class="tr_action" >
                            <td>
                            </td>
                            <td style="width: 973px">
                                <%--<asp:Button ID="btnSave" runat="server" CssClass="btn_01 btn_save" 
                                    Text="Save" />
                                <button ID="reset" class="btn_01" type="reset">
                                    Reset
                                </button>--%>
                                &nbsp;&nbsp; <%--<a href="javascript:history.back();" class="go_back">Go back</a>--%>
                                <a ID="lnkGoback" runat="server" class="go_back" 
                                    href="/gsdmsmodule/contract/Contract_HostDomain.aspx?pageid=29">Go back</a>
                            </td>
                        </tr>

                        <tr>
                            <td class="title"></td>
                            <td class="input" style="width: 973px"><asp:Label ID="lblMes" runat="server" Visible="false" CssClass="lblMes"></asp:Label></td>
                        </tr>
                    </table>

                </div>

<%--                </ContentTemplate>
            </asp:UpdatePanel>--%>
                
            </fieldset>
        </div>
        </portal:mojoPanel>
        <div class="cleared"></div>
    </asp:Panel>
    <mp:CornerRounderBottom id="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" runat="server" />
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
